home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / v cisle / sadanastroju / greasemonkey-0.8.20080609.0-fx.xpi / chrome / greasemonkey.jar / chromeFiles / content / browser.xul < prev    next >
Extensible Markup Language  |  2008-06-09  |  5KB  |  136 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!DOCTYPE overlay SYSTEM "chrome://greasemonkey/locale/greasemonkey.dtd">
  4.  
  5. <!-- Note: Contains Firefox-specific overlay -->
  6.  
  7. <overlay id="greasemonkey-browser-overlay"
  8.   xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  9.  
  10.   <script type="application/x-javascript" src="chrome://greasemonkey/content/utils.js" />
  11.   <script type="application/x-javascript" src="chrome://greasemonkey/content/prefmanager.js" />
  12.   <script type="application/x-javascript" src="chrome://greasemonkey/content/convert2RegExp.js" />
  13.   <script type="application/x-javascript" src="chrome://greasemonkey/content/menucommander.js" />
  14.   <script type="application/x-javascript" src="chrome://greasemonkey/content/xmlhttprequester.js" />
  15.   <script type="application/x-javascript" src="chrome://greasemonkey/content/miscapis.js" />
  16.   <script type="application/x-javascript" src="chrome://greasemonkey/content/dochandler.js" />
  17.   <script type="application/x-javascript" src="chrome://greasemonkey/content/scriptdownloader.js" />
  18.   <script type="application/x-javascript" src="chrome://greasemonkey/content/browser.js" />
  19.   <script type="application/x-javascript" src="chrome://greasemonkey/content/accelimation.js" />
  20.  
  21.   <popup id="contentAreaContextMenu">
  22.     <menuitem id="view-userscript"
  23.       accesskey="&menu.show.accesskey;"
  24.       label="&menu.show;"
  25.       insertbefore="context-openlink"
  26.       oncommand="GM_BrowserUI.viewContextItemClicked(event);" />
  27.     <menuseparator id="install-userscript-sep"
  28.       insertbefore="context-openlink" />
  29.   </popup>
  30.  
  31.   <!-- Firefox -->
  32.   <menupopup id="menu_ToolsPopup">
  33.     <menu id="gm_general_menu"
  34.       insertbefore="javascriptConsole" />
  35.   </menupopup>
  36.  
  37.   <!-- SeaMonkey -->
  38.   <menupopup id="taskPopup">
  39.     <menu id="gm_general_menu"
  40.       insertbefore="downloadMgr" />
  41.   </menupopup>
  42.  
  43.   <!--
  44.   NOTE: Unlocalized accesskey & label in menu tags; possibly unaccessible
  45.   -->
  46.   <menu id="gm_general_menu" class="menu-iconic"
  47.     accesskey="G"
  48.     label="Greasemonkey"
  49.   >
  50.     <menupopup
  51.       onpopupshowing="GM_showGeneralPopup(event); event.stopPropagation();"
  52.     >
  53.       <menuitem id="gm-general-menu-enabled-item"
  54.         accesskey="&statusbar.enabled.accesskey;"
  55.         label="&statusbar.enabled;"
  56.         type="checkbox"
  57.         oncommand="GM_setEnabled(!GM_getEnabled());" />
  58.       <menuseparator />
  59.       <menuitem id="userscript-tools-install"
  60.         accesskey="&menu.install.accesskey;"
  61.         label="&menu.install;"
  62.         hidden="true"
  63.         oncommand="GM_BrowserUI.installMenuItemClicked(event);" />
  64.       <menuitem
  65.         accesskey="&menu.manage.accesskey;"
  66.         label="&menu.manage;"
  67.         oncommand="GM_BrowserUI.manageMenuItemClicked(event);" />
  68.       <menuitem id="userscript-tools-new"
  69.         accesskey="&menu.new.accesskey;"
  70.         label="&menu.new;"
  71.         oncommand="GM_BrowserUI.newUserScript();" />
  72.       <menu id="userscript-commands-sb2"
  73.         accesskey="&menu.commands.accesskey;"
  74.         label="&menu.commands;"
  75.         disabled="false"
  76.         onpopupshowing="event.stopPropagation();"
  77.       >
  78.         <menupopup />
  79.       </menu>
  80.     </menupopup>
  81.   </menu>
  82.  
  83.   <statusbar id="status-bar">
  84.     <!-- NOTE: Local to statusbar tag scope -->
  85.     <stringbundle id="gm-browser-bundle" src="chrome://greasemonkey/locale/gm-browser.properties" />
  86.  
  87.     <statusbarpanel id="gm-status"
  88.       insertafter="livemark-button"
  89.     >
  90.       <label id="gm-status-label"
  91.         collapsed="true"
  92.         crop="end"
  93.         style="width:0px; margin:0" />
  94.       <image id="gm-status-image"
  95.         width="16"
  96.         height="16"
  97.         style="margin:0 5px"
  98.         mousethrough="never"
  99.         onclick="if (!event.button) GM_setEnabled(!GM_getEnabled());
  100.                     else if (event.button == 1) GM_BrowserUI.manageMenuItemClicked();"
  101.         context="gm-status-popup" />
  102.       <popup id="gm-status-popup"
  103.         position="before_end"
  104.         onpopupshowing="GM_showPopup(event); event.stopPropagation();"
  105.         onclick="GM_popupClicked(event); event.stopPropagation();"
  106.       >
  107.         <menuitem id="gm-status-no-scripts"
  108.           label="&statusbar.noscripts;"
  109.           style="color:grey" />
  110.         <menuseparator id="gm-status-no-scripts-sep" />
  111.         <menu id="userscript-commands-sb"
  112.           accesskey="&menu.commands.accesskey;"
  113.           label="&menu.commands;"
  114.           disabled="false"
  115.           onpopupshowing="event.stopPropagation();"
  116.         >
  117.           <menupopup />
  118.         </menu>
  119.         <menuseparator />
  120.         <menuitem accesskey="&menu.new.accesskey;"
  121.           label="&menu.new;"
  122.           oncommand="GM_BrowserUI.newUserScript();" />
  123.         <menuitem accesskey="&menu.manage.accesskey;"
  124.           label="&menu.manage;"
  125.           oncommand="GM_BrowserUI.manageMenuItemClicked(event);" />
  126.         <menuseparator />
  127.         <menuitem id="gm-status-enabled-item"
  128.           accesskey="&statusbar.enabled.accesskey;"
  129.           label="&statusbar.enabled;"
  130.           type="checkbox"
  131.           oncommand="GM_setEnabled(!GM_getEnabled());" />
  132.       </popup>
  133.     </statusbarpanel>
  134.   </statusbar>
  135.  
  136. </overlay>